package one.stand.enums;

/**
 * @author zrh
 */

public enum SendTypeEnum {

    UNREAD_MESSAGE(0,"未读消息提示"),
    CONTACT_US(1,"联系方式提示");

    private Integer code;
    private String message;

    public void setCode(Integer code){
        this.code = code;
    }
    public Integer getCode(){
        return code;
    }
    public void setMessage(String message){
        this.message = message;
    }
    public String getMessage(){
        return message;
    }
    SendTypeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public static String getMessage(String value) {
        SendTypeEnum[] orderStateEnum = values();
        for (SendTypeEnum orderStateEnum1 : orderStateEnum) {
            if (orderStateEnum1.getCode().equals(value)) {
                return orderStateEnum1.getMessage();
            }
        }
        return null;
    }
}
